﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Media;

namespace LogAnalyzer.Model
{
    public class RoutingData
    {
        public string RequestingNode { get; set; }
        public string RequestedNode { get; set; }
        public string EndingNode { get; set; }
        public string RouteId { get; set; }
        
        public bool SuccessfulRouting { get { return RequestedNode == EndingNode; } }

        public SolidColorBrush RowColor 
        { 
            get 
            {
                return SuccessfulRouting ? new SolidColorBrush(Colors.White) : new SolidColorBrush(Colors.LightPink);
            } 
        }
    }
}
